package 常用方法.转化.大小写转换;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 姚东名
 * Date: 2024-06-20
 * Time: 11:54
 */
public class Test {
    public static void main(String[] args) {
        String s1 = "hello";
        String s2 = "HELLO";

        //1. 小写转大写
        System.out.println(s1.toUpperCase());
        //2. 大写转小写
        System.out.println(s2.toLowerCase());
    }
}

/*
执行结果：
HELLO
hello
 */